#ifndef _infinity_h_
#define _infinity_h_

#include <stdio.h>
#include <stdlib.h>
#include <gccore.h>
#include <wiiuse/wpad.h>

//#define MAX_PIECES 8
//#define BOARD_X 6
//#define BOARD_Y 6
//#define POINTER_Y 10

enum color {
    EMPTY,
    BLUE,
    YELLOW,
    BLACK,
    WHITE
};

class Player {
private:
    color mainColor;
    color wildColor;
    int pieces;
    bool usedWild;
public:
    void decrementPiece();
    void incrementPiece();
    void useWild();
    void returnWild();
    color getMainColor(void);
    color getWildColor(void);
    int getPieceCount(void);
    bool isWildUse(void);
    Player(color _mainColor, color _wildColor);
    Player(void);
    virtual ~Player(void);
};

class Infinity {
private:
    void checkScore(Player **player, int *score);
    char colorChar(color _color);
    void eraseBoard(void);
    void drawBoard();
    color addPiece( int place, color pieceColor);
public:
    int run(void);
    Infinity(void);
    virtual ~Infinity();
};

#endif //_infinity_h_
